package zhaoche.gps.model;
import java.sql.Timestamp;

import lrq.data.Model;
import lrq.data.Annotation.Table;
import lrq.data.Annotation.TableMapping;

@Table(tableName="car_gps_record")
public class CarGpsRecordModel extends Model{

	@TableMapping(FieldName="id",PrimaryKey=true)
	protected String id;

	@TableMapping(FieldName="device_num")
	protected String deviceNum;

	@TableMapping(FieldName="longitude")
	protected String longitude;

	@TableMapping(FieldName="latitude")
	protected String latitude;

	@TableMapping(FieldName="speed")
	protected Double speed;

	@TableMapping(FieldName="direction")
	protected Integer direction;

	@TableMapping(FieldName="vehicle_status")
	protected String vehicleStatus;

	@TableMapping(FieldName="gpsrev_time")
	protected Timestamp gpsrevTime;
	
	protected boolean IsGpsGood;
	
	public boolean isGpsGood() {
		return IsGpsGood;
	}

	public void setIsGpsGood(boolean isGpsGood) {
		IsGpsGood = isGpsGood;
	}

	public CarGpsRecordModel() {
	}

	public CarGpsRecordModel(String id) {
		 this.id = id;
	}
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDeviceNum() {
		return deviceNum;
	}

	public void setDeviceNum(String deviceNum) {
		this.deviceNum = deviceNum;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public Double getSpeed() {
		return speed;
	}

	public void setSpeed(Double speed) {
		this.speed = speed;
	}

	public Integer getDirection() {
		return direction;
	}

	public void setDirection(Integer direction) {
		this.direction = direction;
	}

	public String getVehicleStatus() {
		return vehicleStatus;
	}

	public void setVehicleStatus(String vehicleStatus) {
		this.vehicleStatus = vehicleStatus;
	}

	public Timestamp getGpsrevTime() {
		return gpsrevTime;
	}

	public void setGpsrevTime(Timestamp gpsrevTime) {
		this.gpsrevTime = gpsrevTime;
	}

}
